cisco-cvp-ux icon

cisco-cvp-ux

(0 reviews)

Get UsageConsumptionDetails - TMF677 GET

Request

URL

http://[host]:[port]/cisco-cvp-ux/v1/{businessId}/usageConsumptionReport

Common Parameters

Base URI parameters and headers are common to all the resources as part of cisco-cvp-ux api listed below with details.

URI Parameter

BusinessId is a part of Base URI which is an enumeration of two-character length representing market/country.

NameTypeM/ODescription
businessIdstringMBusiness unit identifier. Can be one of: "JM", "PA", "PR", "CL", "CR"

Query Parameter

NameTypeM/ODescription
product.publicIdentifierstringMPublic number associated to the product (for PR: number for mobile line, for CWC and BTC: serviceNo/SubscriberNo)
product.publicIdentifierTypestringMCustomer Public Identifier type.
Example: MSISDN/SubscriptionId
For CWC and BTC it is always 'MSISDN'
relatedParty.idstringcond.Munique identifier of the account.
Mandatory when businessIDs contains CWC (liberate) markets and LOB is Postpaid

Headers

namevaluedescriptionrequired
X-Correlation-IDstringThis is a unique identifier for the current call chain that can be used to tie together log entries on multiple layers.
Example: 644e1dd7-2a7f-18fb-b8ed-ed78c3F92c2b
O
lobstringIt defines the Line of Business . Example : PREPAIDM
channelIdstringChannel to identify the business group.
Eg:ivrB2C
Mandatory when businessID is PR
cond.M
targetSystemstringthis indicates target system name/id in your request.
Example: matrixx
Mandatory when businessID is PR.
cond.M

Security Headers

NameTypeM/ODescription
Client-idstringMClient Id value for Client Id Enforcement policy. Environment Specific Value. Eg: 6f0ed16a7b494d76b2d60e05bc3b3332
Client-secretstringMClient secret value for Client Id Enforcement policy. Environment Specific Value, eg: e4CD4D43449846aA9D8Cb9c43fAd324a

Response

Possible success response

This section defines all the possible data structures received by the client and that must be considered satisfactory at the time of responding to the method.

PR Success Response
[
    {
        "id": "9077613",
        "href": "https://esb-dev.lla.com/usageConsumption/v3/usageConsumptionReport/9077613",
        "description": "Usage Consumption Report for MSISDN 9077613",
        "effectiveDate": "2023-01-17T00:29:41.693Z",
        "bucket": [
            {
                "id": "1",
                "name": "Prepaid Balance",
                "usageType": "United States dollar",
                "isShared": false,
                "remainingValue": {
                    "amount": 40.00,
                    "units": "USD"
                },
                "remainingValueName": "40 USD",
                "product": [
                    {
                        "publicIdentifier": "9077613"
                    }
                ]
            },
            {
                "id": "2",
                "name": "Setup_Flag_Balance",
                "usageType": "Flag",
                "isShared": false,
                "remainingValue": {
                    "amount": "infinity",
                    "units": ""
                },
                "remainingValueName": "infinity",
                "product": [
                    {
                        "publicIdentifier": "9077613"
                    }
                ]
            },
            {
                "id": "3",
                "name": "Setup_Flag_Balance - SMS 3G",
                "usageType": "Flag",
                "isShared": false,
                "remainingValue": {
                    "amount": "infinity",
                    "units": ""
                },
                "remainingValueName": "infinity",
                "product": [
                    {
                        "publicIdentifier": "9077613"
                    }
                ]
            },
            {
                "id": "4",
                "name": "Setup_Flag_Balance - SMS LTE",
                "usageType": "Flag",
                "isShared": false,
                "remainingValue": {
                    "amount": "infinity",
                    "units": ""
                },
                "remainingValueName": "infinity",
                "product": [
                    {
                        "publicIdentifier": "9077613"
                    }
                ]
            },
            {
                "id": "5",
                "name": "Included Minutes - Prepaid",
                "usageType": "Voice",
                "isShared": false,
                "product": [
                    {
                        "publicIdentifier": "9077613"
                    }
                ],
                "bucketBalance": [
                    {
                        "remainingValue": {
                            "amount": 999999.00,
                            "units": "minutes"
                        },
                        "remainingValueName": "999999 minutes",
                        "validFor": {
                            "startDateTime": "2023-01-07T07:47:32.000Z",
                            "endDateTime": "2023-02-06T07:47:32.000Z"
                        },
                        "daysLeft": 20
                    }
                ],
                "bucketCounter": [
                    {
                        "counterType": "used",
                        "consumptionPeriod": {
                            "endDateTime": "2023-02-06T07:47:32.000Z",
                            "startDateTime": "2023-01-07T07:47:32.000Z"
                        },
                        "value": {
                            "amount": 999999.00,
                            "units": "minutes"
                        }
                    }
                ]
            },
            {
                "id": "6",
                "name": "Included SMS - Prepaid",
                "usageType": "Text",
                "isShared": false,
                "product": [
                    {
                        "publicIdentifier": "9077613"
                    }
                ],
                "bucketBalance": [
                    {
                        "remainingValue": {
                            "amount": 999999.00
                        },
                        "remainingValueName": "999999",
                        "validFor": {
                            "startDateTime": "2023-01-07T07:47:32.000Z",
                            "endDateTime": "2023-02-06T07:47:32.000Z"
                        },
                        "daysLeft": 20
                    }
                ],
                "bucketCounter": [
                    {
                        "counterType": "used",
                        "consumptionPeriod": {
                            "endDateTime": "2023-02-06T07:47:32.000Z",
                            "startDateTime": "2023-01-07T07:47:32.000Z"
                        },
                        "value": {
                            "amount": 999999.00
                        }
                    }
                ]

            },
            {
                "id": "7",
                "name": "Included Data - Prepaid",
                "usageType": "Data",
                "isShared": false,
                "product": [
                    {
                        "publicIdentifier": "9077613"
                    }
                ],
                "bucketBalance": [
                    {
                        "remainingValue": {
                            "amount": 4096.00,
                            "units": "megabytes"
                        },
                        "remainingValueName": "4096 megabytes",
                        "validFor": {
                            "startDateTime": "2023-01-07T07:47:32.000Z",
                            "endDateTime": "2023-02-06T07:47:32.000Z"
                        },
                        "daysLeft": 20
                    }
                ],
                "bucketCounter": [
                    {
                        "counterType": "used",
                        "consumptionPeriod": {
                            "endDateTime": "2023-02-06T07:47:32.000Z",
                            "startDateTime": "2023-01-07T07:47:32.000Z"
                        },
                        "value": {
                            "amount": 4096.00,
                            "units": "megabytes"
                        }
                    }
                ]
            },
            {
                "id": "8",
                "name": "HotSpot Data - Prepaid",
                "usageType": "Data",
                "isShared": false,
                "product": [
                    {
                        "publicIdentifier": "9077613"
                    }
                ],
                "bucketBalance": [
                    {
                        "remainingValue": {
                            "amount": 4096.00,
                            "units": "megabytes"
                        },
                        "remainingValueName": "4096 megabytes",
                        "validFor": {
                            "startDateTime": "2023-01-07T07:47:32.000Z",
                            "endDateTime": "2023-02-06T07:47:32.000Z"
                        },
                        "daysLeft": 20
                    }
                ],
                "bucketCounter": [
                    {
                        "counterType": "used",
                        "consumptionPeriod": {
                            "endDateTime": "2023-02-06T07:47:32.000Z",
                            "startDateTime": "2023-01-07T07:47:32.000Z"
                        },
                        "value": {
                            "amount": 4096.00,
                            "units": "megabytes"
                        }
                    }
                ]

            },
            {
                "id": "9",
                "name": "Included MMS - Prepaid",
                "usageType": "Picture",
                "isShared": false,
                "product": [
                    {
                        "publicIdentifier": "9077613"
                    }
                ],
                "bucketBalance": [
                    {
                        "remainingValue": {
                            "amount": 999999.00
                        },
                        "remainingValueName": "999999",
                        "validFor": {
                            "startDateTime": "2023-01-07T07:47:32.000Z",
                            "endDateTime": "2023-02-06T07:47:32.000Z"
                        },
                        "daysLeft": 20
                    }
                ],
                "bucketCounter": [
                    {
                        "counterType": "used",
                        "consumptionPeriod": {
                            "endDateTime": "2023-02-06T07:47:32.000Z",
                            "startDateTime": "2023-01-07T07:47:32.000Z"
                        },
                        "value": {
                            "amount": 999999.00

                        }
                    }
                ]
            }
        ]
    }
]

Note: bucketBalance and bucketCounter are not applicable for usageType United States dollar and Flag. We only display current month's bucketBalance and bucketCounter

Definitions for LCPR
NameTypeDescriptionM/O
idstringThe report is calculated at the time of the request by the server. Generally, this report is not recorded by the server. If it is, an unique identifier of the usage consumption report is given by the serverO
hrefstringHyperlink to access the usage consumption report. The report is calculated at the time of the request by the server. Generally, this report is not recorded by the server. If it is, an unique identifier of the usage consumption report is given by the serverO
descriptiondescriptionFree short text describing the usage consumption report contentO
effectiveDatedateTimeDate and time when the usage consumption report was calculated and generateO
bucket.idstringUnique identifier of the bucketO
bucket.namestringBucket nameO
bucket.usageTypestringType of usage concerned by the bucket, such as voice, sms, dataM
bucket.isSharedBooleanTrue if the bucket is shared between several devices or usersO
bucket.remainingValue.amountFloatNumeric value in a given unitM
bucket.remainingValue.unitsstringUnitM
bucket.remainingValueNamestringRemaining value in a formatted string for the bucket.O
bucket.product.publicIdentifierstringPublic number associated to the network product (msisdn number for mobile line for example)O
bucket.bucketBalance.remainingValue.amountFloatNumeric value in a given unitM
bucket.bucketBalance.remainingValue.unitsstringUnitM
bucket.bucketBalance.remainingValueNamestringRemaining value in a formatted string for the bucket given in the balance unit (for example 1.9 GbO
bucket.bucketBalance.validFor.startDateTimeDateTimeStart of the time period, using IETC-RFC-3339 format. If you define a start, you must also define an endO
bucket.bucketBalance.validFor.endDateTimeDateTimeEnd of the time period, using IETC-RFC-3339 formatO
bucket.bucketBalance.daysLeftIntegerIt defines the number of days left for a plan to get expired.M
bucket.bucketCounter.counterTypestringType of the consumption counter. We can give for example a counter of the used value for a bucket (counterType=used for example) or the value of the consumption done out of the bucket(s) (counterType=outOfBucket for example).O
bucket.bucketCounter.consumptionPeriod.endDateTimeDateTimeConsumption counter period between a start date time and an end date time. For prepaid bucket, the period of counters is between the start date of the bucket and the effective date of the usage consumption report generation. For postpaid bucket, the period of counters is between the last bill date and the effective date of the usage consumption report generation.O
bucket.bucketCounter.consumptionPeriod.startDateTimeDateTimeConsumption counter period between a start date time and an end date time. For prepaid bucket, the period of counters is between the start date of the bucket and the effective date of the usage consumption report generation. For postpaid bucket, the period of counters is between the last bill date and the effective date of the usage consumption report generation.O
bucket.bucketCounter.value.amountFloatNumeric value of the bucket counter in a given unit.M
bucket.bucketCounter.value.unitsstringUnit of the bucket counterO
CWC Liberate Success Response
[
    {
        "id": "",
        "queryUsageConsumptionDate": "2023-10-04T14:18:32.693-04:00",
        "searchCriteria": {
            "service": [
                {
                    "id": "4933562",
                    "@type": "POSTPAID"
                }
            ]
        },
        "relatedParty": [
            {
                "id": "150015680000",
                "@type": "BillingAccount"
            }
        ],
        "usageConsumption": [
            {
                "id": "M-LARGE-STAFF",
                "bucketRefOrValue": [
                    {
                        "id": "3",
                        "isShared": false,
                        "name": "Local SMS ( Flow & 3rd Party)",
                        "usageType": "Number of Calls",
                        "bucketCounter": [
                            {
                                "counterType": "used",
                                "valueName": "Calls",
                                "consumptionPeriod": {
                                    "endDateTime": "2021-02-28T00:00:00.000-04:00"
                                },
                                "value": {
                                    "amount": 0,
                                    "units": ""
                                },
                                "@type": "UnitsUsed"
                            },
                            {
                                "counterType": "allocated",
                                "valueName": "Calls",
                                "consumptionPeriod": {
                                    "endDateTime": "2021-02-28T00:00:00.000-04:00"
                                },
                                "value": {
                                    "amount": 999999999999,
                                    "units": ""
                                },
                                "@type": "UnitsAllocated"
                            },
                            {
                                "counterType": "carried",
                                "valueName": "Calls",
                                "consumptionPeriod": {
                                    "endDateTime": "2021-02-28T00:00:00.000-04:00"
                                },
                                "value": {
                                    "amount": 0,
                                    "units": ""
                                },
                                "@type": "UnitsCarriedOver"
                            }
                        ],
                        "remainingValue": {
                            "amount": 999999999999,
                            "units": ""
                        },
                        "validFor": {
                            "endDateTime": "2021-02-28T00:00:00.000-04:00"
                        }
                    },
                    {
                        "id": "1",
                        "isShared": false,
                        "name": "Anytime Anywhere - 1000MINs",
                        "usageType": "Duration",
                        "bucketCounter": [
                            {
                                "counterType": "used",
                                "valueName": "Minutes",
                                "consumptionPeriod": {
                                    "endDateTime": ""
                                },
                                "value": {
                                    "amount": 1.21,
                                    "units": "MINS"
                                },
                                "@type": "UnitsUsed"
                            },
                            {
                                "counterType": "allocated",
                                "valueName": "Minutes",
                                "consumptionPeriod": {
                                    "endDateTime": ""
                                },
                                "value": {
                                    "amount": 1000.00,
                                    "units": "MINS"
                                },
                                "@type": "UnitsAllocated"
                            },
                            {
                                "counterType": "carried",
                                "valueName": "Minutes",
                                "consumptionPeriod": {
                                    "endDateTime": ""
                                },
                                "value": {
                                    "amount": 990.15,
                                    "units": "MINS"
                                },
                                "@type": "UnitsCarriedOver"
                            }
                        ],
                        "remainingValue": {
                            "amount": 1988.54,
                            "units": "MINS"
                        },
                        "validFor": {
                            "endDateTime": ""
                        }
                    },
                    {
                        "id": "2",
                        "isShared": false,
                        "name": "Flow to Flow unlimited Mins",
                        "usageType": "Duration",
                        "bucketCounter": [
                            {
                                "counterType": "used",
                                "valueName": "Minutes",
                                "consumptionPeriod": {
                                    "endDateTime": ""
                                },
                                "value": {
                                    "amount": 0.00,
                                    "units": "MINS"
                                },
                                "@type": "UnitsUsed"
                            },
                            {
                                "counterType": "allocated",
                                "valueName": "Minutes",
                                "consumptionPeriod": {
                                    "endDateTime": ""
                                },
                                "value": {
                                    "amount": 16666666666.39,
                                    "units": "MINS"
                                },
                                "@type": "UnitsAllocated"
                            },
                            {
                                "counterType": "carried",
                                "valueName": "Minutes",
                                "consumptionPeriod": {
                                    "endDateTime": ""
                                },
                                "value": {
                                    "amount": 0.00,
                                    "units": "MINS"
                                },
                                "@type": "UnitsCarriedOver"
                            }
                        ],
                        "remainingValue": {
                            "amount": 16666666666.39,
                            "units": "MINS"
                        },
                        "validFor": {
                            "endDateTime": ""
                        }
                    },
                    {
                        "id": "4",
                        "isShared": false,
                        "name": "Local and HRR DATA (Flow)- 12GB",
                        "usageType": "Volume",
                        "bucketCounter": [
                            {
                                "counterType": "used",
                                "valueName": "Megabytes",
                                "consumptionPeriod": {
                                    "endDateTime": "2021-02-28T00:00:00.000-04:00"
                                },
                                "value": {
                                    "amount": 631.19,
                                    "units": "MBS"
                                },
                                "@type": "UnitsUsed"
                            },
                            {
                                "counterType": "allocated",
                                "valueName": "Megabytes",
                                "consumptionPeriod": {
                                    "endDateTime": "2021-02-28T00:00:00.000-04:00"
                                },
                                "value": {
                                    "amount": 12288.00,
                                    "units": "MBS"
                                },
                                "@type": "UnitsAllocated"
                            },
                            {
                                "counterType": "carried",
                                "valueName": "Megabytes",
                                "consumptionPeriod": {
                                    "endDateTime": "2021-02-28T00:00:00.000-04:00"
                                },
                                "value": {
                                    "amount": 11244.14,
                                    "units": "MBS"
                                },
                                "@type": "UnitsCarriedOver"
                            }
                        ],
                        "remainingValue": {
                            "amount": 22900.95,
                            "units": "MBS"
                        },
                        "validFor": {
                            "endDateTime": "2021-02-28T00:00:00.000-04:00"
                        }
                    }
                ],
                "logicalResource": [
                    {
                        "id": "4933562",
                        "@type": "MSISDN"
                    }
                ],
                "@type": "usageConsumption"
            },
            {
                "id": "MB-D-7GB",
                "bucketRefOrValue": [
                    {
                        "id": "1",
                        "isShared": false,
                        "name": "MOBILE DATA 7GB",
                        "usageType": "Volume",
                        "bucketCounter": [
                            {
                                "counterType": "used",
                                "valueName": "Airtime Minutes",
                                "consumptionPeriod": {
                                    "endDateTime": "2021-02-28T00:00:00.000-04:00"
                                },
                                "value": {
                                    "amount": 0,
                                    "units": "MINS"
                                },
                                "@type": "UnitsUsed"
                            },
                            {
                                "counterType": "allocated",
                                "valueName": "Airtime Minutes",
                                "consumptionPeriod": {
                                    "endDateTime": "2021-02-28T00:00:00.000-04:00"
                                },
                                "value": {
                                    "amount": 0,
                                    "units": "MINS"
                                },
                                "@type": "UnitsAllocated"
                            },
                            {
                                "counterType": "carried",
                                "valueName": "Airtime Minutes",
                                "consumptionPeriod": {
                                    "endDateTime": "2021-02-28T00:00:00.000-04:00"
                                },
                                "value": {
                                    "amount": 0,
                                    "units": "MINS"
                                },
                                "@type": "UnitsCarriedOver"
                            }
                        ],
                        "remainingValue": {
                            "amount": 0,
                            "units": "MINS"
                        },
                        "validFor": {
                            "endDateTime": "2021-02-28T00:00:00.000-04:00"
                        }
                    }
                ],
                "logicalResource": [
                    {
                        "id": "4933562",
                        "@type": "MSISDN"
                    }
                ],
                "@type": "usageConsumption"
            },
            {
                "bucketRefOrValue": [
                    {
                        "name": "internet",
                        "description": "Mobile Internet",
                        "remainingValueName": "Mobile Internet",
                        "status": "active",
                        "usageType": "Internet",
                        "remainingValue": {
                            "amount": 31.28,
                            "units": "GB"
                        },
                        "validFor": {
                            "endDateTime": "2023-10-28T00:00:00.000-04:00"
                        }
                    }
                ],
                "logicalResource": [
                    {
                        "id": "17844933562",
                        "@type": "MSISDN"
                    }
                ],
                "@type": "UsageConsumption"
            }
        ]
    }
]
CWC/BTC Cerillion Success Response
[
    {
        "id": "",
        "queryUsageConsumptionDate": "2023-10-04T14:23:39.532-04:00",
        "searchCriteria": {
            "service": [
                {
                    "id": "2466217773",
                    "@type": "POSTPAID"
                }
            ]
        },
        "relatedParty": [
            {
                "id": "70006464",
                "@type": "BillingAccount"
            }
        ],
        "usageConsumption": [
            {
                "bucketRefOrValue": [
                    {
                        "id": "",
                        "isShared": false,
                        "name": "2 Free Directory Enquiries",
                        "bucketCounter": [
                            {
                                "counterType": "used",
                                "valueName": "SMS",
                                "consumptionPeriod": {
                                    "endDateTime": "2023-06-30T00:00:00.000-04:00",
                                    "startDateTime": "2023-06-01T00:00:00.000-04:00"
                                },
                                "value": {
                                    "amount": 0,
                                    "units": "SMS"
                                }
                            },
                            {
                                "counterType": "carried",
                                "valueName": "SMS",
                                "consumptionPeriod": {
                                    "endDateTime": "2023-06-30T00:00:00.000-04:00",
                                    "startDateTime": "2023-06-01T00:00:00.000-04:00"
                                },
                                "value": {
                                    "amount": 0,
                                    "units": "SMS"
                                }
                            },
                            {
                                "counterType": "allocated",
                                "valueName": "SMS",
                                "consumptionPeriod": {
                                    "endDateTime": "2023-06-30T00:00:00.000-04:00",
                                    "startDateTime": "2023-06-01T00:00:00.000-04:00"
                                },
                                "value": {
                                    "amount": 2,
                                    "units": "SMS"
                                }
                            },
                            {
                                "counterType": "expiring",
                                "valueName": "SMS",
                                "consumptionPeriod": {
                                    "endDateTime": "2023-06-30T00:00:00.000-04:00",
                                    "startDateTime": "2023-06-01T00:00:00.000-04:00"
                                },
                                "value": {
                                    "amount": 2,
                                    "units": "SMS"
                                }
                            }
                        ],
                        "remainingValue": {
                            "amount": 2,
                            "units": "SMS"
                        },
                        "validFor": {
                            "endDateTime": "2023-06-30T00:00:00.000-04:00",
                            "startDateTime": "2023-06-01T00:00:00.000-04:00"
                        }
                    }
                ],
                "logicalResource": [
                    {
                        "id": "2466217773",
                        "@type": "MSISDN"
                    }
                ],
                "@type": "usageConsumption"
            },
            {
                "bucketRefOrValue": [
                    {
                        "name": "internet",
                        "description": "Mobile Internet",
                        "remainingValueName": "Mobile Internet",
                        "status": "active",
                        "usageType": "Internet",
                        "remainingValue": {
                            "amount": 31.28,
                            "units": "GB"
                        },
                        "validFor": {
                            "endDateTime": "2023-10-28T00:00:00.000-04:00"
                        }
                    }
                ],
                "logicalResource": [
                    {
                        "id": "12466217773",
                        "@type": "MSISDN"
                    }
                ],
                "@type": "UsageConsumption"
            }
        ]
    }
]
CWC Limeware Success Response
[
    {
        "id": "",
        "queryUsageConsumptionDate": "2023-10-30T10:26:59.132-05:00",
        "searchCriteria": {
            "service": [
                {
                    "id": "18767911940",
                    "@type": "PREPAID"
                }
            ]
        },
        "usageConsumption": [
            {
                "bucketRefOrValue": [
                    {
                        "name": "Social Media",
                        "description": "Social Media",
                        "remainingValueName": "Social Media",
                        "status": "active",
                        "usageType": "Social Media",
                        "remainingValue": {
                            "amount": 10.00,
                            "units": "GB"
                        },
                        "validFor": {
                            "endDateTime": "2023-11-03T12:00:14.000-05:00"
                        }
                    },
                    {
                        "name": "Spotify",
                        "description": "Spotify",
                        "remainingValueName": "Spotify",
                        "status": "active",
                        "usageType": "Internet",
                        "remainingValue": {
                            "amount": 2.50,
                            "units": "GB"
                        },
                        "validFor": {
                            "endDateTime": "2023-11-03T12:00:14.000-05:00"
                        }
                    },
                    {
                        "name": "local Text",
                        "description": "Local Text",
                        "remainingValueName": "Local Text",
                        "status": "active",
                        "usageType": "Sms",
                        "remainingValue": {
                            "amount": 200,
                            "units": "SMS"
                        },
                        "validFor": {
                            "endDateTime": "2023-11-03T12:00:14.000-05:00"
                        }
                    },
                    {
                        "name": "Intl",
                        "description": "USA Intl Mins",
                        "remainingValueName": "USA Intl Mins",
                        "status": "active",
                        "usageType": "Voice",
                        "remainingValue": {
                            "amount": 25,
                            "units": "mins"
                        },
                        "validFor": {
                            "endDateTime": "2023-11-03T12:00:14.000-05:00"
                        }
                    },
                    {
                        "name": "not displayed",
                        "description": "not displayed",
                        "remainingValueName": "not displayed",
                        "status": "active",
                        "usageType": "Internet",
                        "remainingValue": {
                            "amount": 30.00,
                            "units": "KB"
                        },
                        "validFor": {
                            "endDateTime": "2023-11-03T12:00:14.000-05:00"
                        }
                    },
                    {
                        "name": "Intl",
                        "description": "International Mins",
                        "remainingValueName": "International Mins",
                        "status": "active",
                        "usageType": "Voice",
                        "remainingValue": {
                            "amount": 1140,
                            "units": "mins"
                        },
                        "validFor": {
                            "endDateTime": "2023-11-16T13:06:14.000-05:00"
                        }
                    },
                    {
                        "name": "Core",
                        "description": "primaryBalance",
                        "remainingValueName": "primaryBalance",
                        "status": "active",
                        "usageType": "Core",
                        "remainingValue": {
                            "amount": 1814.94,
                            "units": "JMD"
                        },
                        "validFor": {
                            "endDateTime": "2023-12-04T12:00:11.000-05:00"
                        }
                    }
                ],
                "logicalResource": [
                    {
                        "id": "18767911940",
                        "@type": "MSISDN"
                    }
                ],
                "@type": "UsageConsumption"
            }
        ]
    }
]
BTC Ericsson Success Response
[
    {
        "id": "",
        "queryUsageConsumptionDate": "2023-11-21T08:16:42.226-05:00",
        "searchCriteria": {
            "service": [
                {
                    "id": "12424495927",
                    "@type": "PREPAID"
                }
            ]
        },
        "usageConsumption": [
            {
                "bucketRefOrValue": [
                    {
                        "id": "12424495927",
                        "isShared": true,
                        "name": "Core",
                        "usageType": "monetary",
                        "description": "Core monetary balance",
                        "remainingValueName": "33.9 BSD",
                        "remainingValue": {
                            "amount": 33.9,
                            "units": "BSD"
                        },
                        "validFor": {
                            "endDateTime": "2024-10-01T08:00:00.000-04:00"
                        },
                        "status": "Active"
                    },
                    {
                        "id": "1001",
                        "isShared": true,
                        "name": "Loan",
                        "usageType": "monetary",
                        "description": "Loan",
                        "remainingValueName": "0 BSD",
                        "remainingValue": {
                            "amount": 0,
                            "units": "BSD"
                        },
                        "validFor": {
                            "endDateTime": "9999-12-31T07:00:00.000-05:00"
                        },
                        "status": "Active"
                    }
                ],
                "logicalResource": [
                    {
                        "id": "12424495927",
                        "@type": "MSISDN"
                    }
                ],
                "@type": "usageConsumption"
            }
        ]
    }
]
Definitions for CWC/BTC
NameTypeDescriptionM/O
idstringThe report is calculated at the time of the request by the server. Generally, this report is not recorded by the server. If it is, an unique identifier of the usage consumption report is given by the serverO
hrefstringHyperlink to access the usage consumption report. The report is calculated at the time of the request by the server. Generally, this report is not recorded by the server. If it is, an unique identifier of the usage consumption report is given by the serverO
queryUsageConsumptionDatedatetimeDate when the query was submittedO
relatedPartyarrayReference and role of the related parties for which the usage consumption is requestedO
relatedParty.idstringunique identifierO
relatedParty.@typestringWhen sub-classing, this defines the sub-class Extensible nameO
usageConsumptionarrayReport with current counters and balancesO
usageConsumption.idstringunique identifierO
usageConsumption.descriptionstringFree short text describing the usage consumption contentO
usageConsumption.namestringUsage consumption nameO
usageConsumption.bucketRefOrValuearrayBucket(s) included in the offer or option subscribed.O
usageConsumption.bucketRefOrValue.idstringUnique Identifier within the server for the bucketO
usageConsumption.bucketRefOrValue.hrefstringA resource URI pointing to the resource in the OB that stores the detailed information for the bucketO
usageConsumption.bucketRefOrValue.descriptionstringText describing the contents of the balance managed by the bucketO
usageConsumption.bucketRefOrValue.isSharedbooleanTrue if the bucket is shared between several devices or usersO
usageConsumption.bucketRefOrValue.namestringFriendly name to identify the bucketO
usageConsumption.bucketRefOrValue.remainingValueNamestringRemaining amount in a formatted string for the bucket given in the balance unit (for example 1.9 Gb). This formatted string could be used for display needs for exampleO
usageConsumption.bucketRefOrValue.statusstringstatus for the bucket. active, expired, suspendedO
usageConsumption.bucketRefOrValue.usageTypestringdefines the type of the underlying Balance eg data,voice, any currency eg EUR, USD etcO
usageConsumption.bucketRefOrValue.bucketCounterarrayThe consumption counters (called ConsumptionSummary in the SID model) detail for example the different kind of consumption done on the bucket.O
usageConsumption.bucketRefOrValue.bucketCounter.idstringunique identifierO
usageConsumption.bucketRefOrValue.bucketCounter.hrefstringHyperlink referenceO
usageConsumption.bucketRefOrValue.bucketCounter.counterTypestringType of the consumption counter. We can give for example a counter of the used value for a bucket (counterType=used for example) or the value of the consumption done out of the bucket(s) (counterType=outOfBucket for example)O
usageConsumption.bucketRefOrValue.bucketCounter.levelstringCounter level. The counter can be given globally for the bucket or detailed by user or by network product for example in case of shared bucketO
usageConsumption.bucketRefOrValue.bucketCounter.valueNamestringValue of the counter in a formatted string used for display needs for exampleO
usageConsumption.bucketRefOrValue.bucketCounter.consumptionPeriodobjectConsumption counter period between a start date time and an end date time. For prepaid bucket, the period of counters is between the start date of the bucket and the effective date of the usage consumption report generation. For postpaid bucket, the period of counters is between the last bill date and the effective date of the usage consumption report generation.O
usageConsumption.bucketRefOrValue.bucketCounter.consumptionPeriod.endDateTimedatetimeEnd of the time period, using IETC-RFC-3339 formatO
usageConsumption.bucketRefOrValue.bucketCounter.valueobjectNumeric value of the bucket counter in a given unitO
usageConsumption.bucketRefOrValue.bucketCounter.value.amountnumberNumeric value in a given unitO
usageConsumption.bucketRefOrValue.bucketCounter.value.unitsstringunitO
usageConsumption.bucketRefOrValue.bucketCounter.@baseTypestringWhen sub-classing, this defines the super-classO
usageConsumption.bucketRefOrValue.bucketCounter.@schemaLocationstringA URI to a JSON-Schema file that defines additional attributes and relationshipsO
usageConsumption.bucketRefOrValue.bucketCounter.@typestringWhen sub-classing, this defines the sub-class Extensible nameO
usageConsumption.bucketRefOrValue.logicalResourcearrayreference to the LogicalResource eg MSISDNO
usageConsumption.bucketRefOrValue.logicalResource.idstringunique identifierO
usageConsumption.bucketRefOrValue.logicalResource.@typestringWhen sub-classing, this defines the sub-class Extensible nameO
usageConsumption.bucketRefOrValue.remainingValueobjectIndicate the amount on the bucketO
usageConsumption.bucketRefOrValue.remainingValue.amountnumberNumeric value in a given unitO
usageConsumption.bucketRefOrValue.remainingValue.unitsstringunitO
usageConsumption.bucketRefOrValue.validForobjectThe period for which the balance in the bucket is validO
usageConsumption.bucketRefOrValue.validFor.endDateTimedatetimeEnd of the time period, using IETC-RFC-3339 formatO
usageConsumption.@typestringWhen sub-classing, this defines the sub-class Extensible nameO

Possible response error

HTTP Status response is 400

with Response

[ 400 ]

Bad Request - the request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications.

{
  "errors" : [{
      "code" : 400 ,
      "message" : "The request is invalid or not properly formed.",
      "description" : "The client sent too many requests and server is not able to serve them all at the moment"
    }
  ]
}
[ 401 ]

Unauthorized - The request has not been applied because it lacks valid authentication credentials for the target resource.

{
  "errors" : [{
      "code" : 401,
      "message" : "The user could not be authenticated for this request.",
      "description" : "The request has not been applied because it lacks valid authentication credentials for the target resource"
    }
  ]
}
[ 403 ]

Forbidden - Indicates that the server understood the request but refuses to fulfill it. If authentication credentials were provided in the request, the server considers them insufficient to grant access. The client SHOULD NOT automatically repeat the request with the same credentials. The client MAY repeat the request with new or different credentials.

[ 404 ]

Not Found - server has not found a resource with that URI. This may be temporary and permanent condition. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.

{
  "errors" : [{
      "code" : 404,
       "message" : "The request is invalid or not properly formed.",
      "description" : "The requested operation failed because a resource associated with the request could not be found."
    }
  ]
}
[ 405 ]

Method Not Allowed - HTTP method not allowed for this resource. The method specified in the Request-Line is not allowed for the resource identified by the Request-URI.

{
    "errors": [{
            "code": 405,
             "message": "APIKIT:METHOD_NOT_ALLOWED",
             "description": "HTTP Method post not allowed for : /tmf-api/usageConsumption/v3/{businessId}/usageConsumptionReport
        }]
}
[ 500 ]

Internal Server Error - server encountered an error processing request. This should not happen normally, but it is a generic error message, given when no more specific message is suitable.

{
  "errors" : [{
      "code" : 500,
      "message" : "The request failed due to an internal error.",
      "description": "error description"
    }
  ]
}
[ 501 ]

Check for the other BU Flows, if not implemented then throw a standard error message as below.

{
  "errors" : [{
      "code" : 501,
      "message" : "Not implemented",
      "description" : "Operation GET /usageConsumptionReport for Business Id: CL not implemented"
    }]
  }
[ 503 ]

Service Unavailable

    {
    "errors": [
        {
            "code": 503,
            "message": "HTTP:SERVICE_UNAVAILABLE",
            "description": "HTTP POST on resource 'http://0.0.0.0:9091/tmf-api/usageConsumption/v3/{businessId}/usageConsumptionReport' failed: service unavailable (503)."
        }
    ]
}

Reviews